package com.ruoyi.patrol.service;

import com.ruoyi.patrol.domain.PtCatalog;

import java.util.List;

/**
 * @author zyh
 */
public interface IPtCatalogService {
    List<PtCatalog> selectCatalogList();

    int insertCatalog(PtCatalog catalog);

    List<PtCatalog> buildCatalogTree(List<PtCatalog> list);

    int updateCatalog(PtCatalog catalog);

    boolean hasChildByCatId(Long catId);

    int deleteByCatId(Long catId);

    PtCatalog getCatalogByCatId(Long catId);

    Long[] getCatalogPath(Long catId);
}
